<?php

class Public_Post_WriteErrorView extends BlogPublicBaseView
{
	public function executeHtml(AgaviRequestDataHolder $rd)
	{
		$this->setupHtml($rd, 'blog');
		$params = $rd->getParameters();
		$vm = $this->container->getValidationManager();
		$ro = $this->getContext()->getRouting();
		
		$errors = $vm->getErrors();
		//var_dump($errors);

        $this->setAttribute('submit_route', $ro->gen('post.write'));
		$this->setAttribute('errors', $errors);
        $this->setAttribute('title', 'Write new post');
	}
}

?>
